package com.sjgtw.cloud.web.path.domain;

import com.sjgtw.cloud.common.core.annotation.Excel;
import com.sjgtw.cloud.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 点位对象 path_point
 * 
 * @author lvyoufang
 * @date 2024-03-19
 */
@ApiModel(value="点位对象", description="path_point")
public class PathPoint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 上道地点id */
    @ApiModelProperty(value = "上道地点id")
    @Excel(name = "上道地点id")
    private Long upperId;

    /** 路径id */
    @ApiModelProperty(value = "路径id")
    @Excel(name = "路径id")
    private Long pathId;

    /** 经度 */
    @ApiModelProperty(value = "经度")
    @Excel(name = "经度")
    private BigDecimal longitude;

    /** 纬度 */
    @ApiModelProperty(value = "纬度")
    @Excel(name = "纬度")
    private BigDecimal latitude;

    /** 位置 */
    @ApiModelProperty(value = "位置")
    @Excel(name = "位置")
    private String location;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUpperId(Long upperId) 
    {
        this.upperId = upperId;
    }

    public Long getUpperId() 
    {
        return upperId;
    }
    public void setPathId(Long pathId) 
    {
        this.pathId = pathId;
    }

    public Long getPathId() 
    {
        return pathId;
    }
    public void setLongitude(BigDecimal longitude) 
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("upperId", getUpperId())
            .append("pathId", getPathId())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("location", getLocation())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
